package com.demo.study.thread;

import java.util.HashMap;
import java.util.Map;

/**
 * @author leiliang
 * @version 1.0
 * @Description
 * @date 2021/3/10 12:04
 */
public class TestMain {
    public static void main(String[] args) {
        Integer getnum = getnum();
         System.out.println(getmap());
        ;

    }

    public static Map<Object, Object> getmap() {
        HashMap<Object, Object> objectObjectHashMap = new HashMap<>();

        try {
            objectObjectHashMap.put("a","a");
            return objectObjectHashMap;
        }catch (Exception e){

        }finally {
            objectObjectHashMap.put("b","b");
        }
        objectObjectHashMap.put("c","c");
        return objectObjectHashMap ;
    }

    //输出  {a=a, b=b}

    public static Integer getnum() {
        int a = 1;
        try {
            return a +1;
        }catch (Exception e){
            a = 100;
        }
        return a ;
    }
}
